package com.qf.dao;

import com.qf.entity.Book;
import com.qf.entity.Page;

import java.util.List;

/**
 * @author Wy
 * @version V1.0
 * @Project day41-3
 * @Package com.qf.dao
 * @Description:
 * @Date 2022/5/14 13:14
 */
public interface Bookdao {
    List<Book> selectAll();

    int addOne(Book book);

    int deleteBook(String bookId);

    int uppdateBook(Book book,String bookIds);

    Book selectOne(String bookId);

    /*
    * 查询一共多少条数据
    *
    *
    * */
    int selectAllByPageCount();
    /*
    * 分页查询
    *
    * */
    List<Book> selectAllByPage(Page page);
}
